package pro.cherish.knowledgeumldesignpattern.designPattern.com.cherish.bridge.real;
//桥接模式，巧妙利用组合代替继承,解决多维度且每个维度多个类的复杂情况
//就是将n*n转换为n+n，类少了，后期添加某维度的数量也改动不大
public class client {
    public static void main(String [] args){
        Labtop2 labtop2 = new Labtop2(new Lenovo());
        labtop2.sale();
        Desktop2 desktop2 = new Desktop2(new Shenzhou());
        desktop2.sale();
    }
}
